package com.drinkian.alipay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ALiPayConfig {
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000119650895";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC8/T1hfoFeF9uIyV8FgM9KoUWr0kKfOmoI2036Z7j5aPYegohfWjxLTRBZn3nI42Jb4glf2b2ZYKYgOEXVA+IC316zK5WNXWs8zRrj+HDniFhuzGWrUGpvWH3vlzPckf5wh+2V8j82KvKDlrUpJ7w8+3IMNwAXqGmMjYlP/4OjnnpA7fq/XKpsC1kJpuJdD9wGOz2lfN/si90v+dbLDjRdmMZLcF5eb6xIHwX/pa5G4r0H7J11u1kIRmu912EqEETYwHKAcCpjXAcgtNvSib7VPuCMN0YLc1J62kG4xSsKTxVlo/I7G1w2y1/CVYBJIarZBsp6g14p3BDpOywn1oE/AgMBAAECggEAGinxAntSC6W/5dsDBa8Eg696BsSQJp0equU5kW4kpJrMYALwQEssx7v+hHnYkWAxcMkFRTjOz9oahaFkwY3ND1q/MIzbInwJaZx3mZH+h39Pxt8TQDlc0tdsb+v96Q5pLEkVMkocSDJ/6onFwNHYdJTXACvpHl1ZZ3T8yo90OQVtX63MSTt3etloZHW5rLeZE7VZ6bOFLSOlGl9DOPjTyp1sxcphUmt6Dsi+RWcxtffkFcmwKflRocBEB+mc4S1e0ndoKXm3xbCY0KUiJDI6iU3jxPEu5QLZcKJlvneYtwN3T9QxsYz31gviZxDqZNEsgF7VajgLXWKG/drXy6KjcQKBgQD1jNmaWu8iwpKFpvPWLV5MFNoCMZQobydpbBis4kBBG7PdpbC82O9py3/rD6A1wGKfnEsxQoWheiNjAZS3dtzqkRMPaN/IQikWak7CoSAXV0TK9wWvRRnqlqA2dNc192DHYxexSDVU9NeHwDjSgtu4eFB5kTwYw7QrEIzzxFrS5wKBgQDFCC926FCBFC+9lCE5xSwNS8x2TxqMhu8ucGEax3sAydSsg5M+oap07czBqMrHd8+1pw8ZFiJYElukB2iXKxThPV9Ew3wlUEfHAMbMm0ucuhefuyUfTfXnqo8Ex5LmhpTaJgAmCdGzxG3kSI6vXLPk2N9130bxukw6mGHEEgpr6QKBgF7uYl5bk6JTqQQE5LZD+fXeBd7dPhNXzdvjD7MfEYpaZHJnkWmhUQYMx9qfwuelBjwA180mk7U3HCE1xkIbsRL6nWzStdmdQndJCEQUuOxtL8psMAVv6LIaI7yJ9X4GsqLDO7CtYvkCY6U2+oDgWIP799jX/mzwlGIl1uiTXC23AoGAJJ5E1ACRFaw+wykIk8gFS+NOeJ5y/LMHOMZCBcwVHCxmjjlV4EoDd//KEiPgq/mkbMpDkBIBCAVBatbFpXKoSsQxNIJwTC8DaATI7bXe853STill2M+QaCHWurisoJNajsCJPoiMpLBZDBhADG9aL6nuveVlNf+9sxYm9V20+iECgYEAqF3PYgGsUdMAv3f5XoTbgEpikO0onBkas14aKHJ6NOAr7R4aQKGeRToIwCDqV63SolkFE2RXLLDvF6iO5/tSO7z2kEsH7r4nUZFMqYkKeEkNHwr1iycdEIZzqpL04ONwTUgppwrIIG8go9EZmx6uhK1CLLENIJWbmixltS/S8Y4=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmveLyT2KkMNrx1sstm1E5CJonjVXgDmepixsDd5ROBffbcsbTrpBruXmHxtXv0Zp/AjPw/kPYyfVPz/hPKjEGJ3EQOx0J8jZ4n2CWMdY8tQ6QzqxeRf6jFuHM+pAJmNTrU066bBu1mn/YADQ4qG/iylPoQUGDvlVP8CyijKwnJyBDZ4cDrpJK+K7X9li5RZw1jPj98y9HyvWsQ/SnVCGcp2cp8DWP5zKl2YKjFF6/rmssVnNYCr8Ox9vl2QBknmkN6zkifQqbu8ZURks8Awqt2FT8uNaLVxp282+McrM9sRViLosV80BwXDSMBNAc/E/6Od/aOlbzocLr0FBG35E+wIDAQAB";

    @Value("${environment.public-address}")
    private static String address;
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://" + address + ".natappfree.cc/alipay/payCallback";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost:8080/#/alipay";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 日志打印地址
    public static String log_path = "E:\\";

}
